package com.lg.algorithm.collections.set;

import java.util.concurrent.CopyOnWriteArraySet;

/**
 * 编辑操作全都有 重入锁
 */
public class CopyOnWriteArraySetTest {
    public static void main(String[] args) {
        CopyOnWriteArraySet copyOnWriteArraySet = new CopyOnWriteArraySet();
        copyOnWriteArraySet.add("f");
        copyOnWriteArraySet.remove(1);
//        copyOnWriteArraySet.
    }
}
